<template>
	<view class="wrap">
		<view class="title">
			{{pageContent.title}}
		</view>
		<view class="content">
			
			<rich-text :nodes="pageContent.details"></rich-text>
		</view>
	</view>
</template>

<script>
	import graceRichText from '../../common/richText.js';
	export default {
		data() {
			return {
				id: '',
				pageContent:{}
			}
		},
		onShow(){
			this.getData()
		},
		onLoad(options) {
			this.id=options.id
			
		},
		methods: {
			getData(){
				let that=this
				that.apipost('/api/home/announce_detail',{
					id:that.id
				},true).then(res => {
					if(res.Code==10200){
						
						let data=res.Data
						
						that.pageContent=data
					}
					
				}).catch(err=>{
					console.log(err)
				});
			},
			enterpage(path){
				if(path){
					uni.navigateTo({
					    url: path
					});
				}else{
					uni.showToast({
					    title: '暂未开放',
					    duration:4000,
						icon:'none'
					});
				}
			}
		}
	}
</script>

<style>
	.content{
		color:#acacac;
		line-height:48rpx;
	}
	.title{
		padding-bottom:58rpx;
	}
	.wrap{
		padding:30rpx 68rpx 0 62rpx;
	}
	page{
		border-top:1rpx solid #e8e8e8;
	}
</style>
